<!DOCTYPE html>
<script>
    window.screen.orientation.addEventListener('change', function() {
        parent.window.postMessage(screen.orientation.type, "*");
    });
</script>
